package org.zjx.action.login;

import org.zjx.action.Action;
import org.zjx.core.IWindow;
import org.zjx.state.AccountState;
import org.zjx.util.ImageUtil;

import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;

public class LoginAccountAction extends Action {
    public static final BufferedImage ACCOUNT_LOGIN_IMAGE = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAHgAAAAnCAYAAADEvIzwAAAa40lEQVR4XrWbWXBVVb7Gv6fbg3arCIRzMp3kzFPOkDlESMh0Mg+EJIQIkcEgMxIREBFkCoMSBGQQFEUltEprX+221dvadmvTdt0rZXd1WdVWXerWffDhPvjQD/ft3v+39lnn7DMEbFpT9dVae+3xrN/6D2vtHbxZF8ZklQcfxepwsa4Ku8NG/ZooZpsD/hUVODDUM4q1y8cwsWscz03uxNVL+/CW6N2X9uED0ZWz63Bw9zDeubIa//Xnrark9s/OrscHcty30SsnH85oy1D8ft+Z0q7N3/POZUOsv3VpIkPqmOe24NK+pUkdMJW6fpu6nOX8Z9a048TmxTg41IdtjTFs67i5VttsiN35QyiQhKrhXqwV4CKWGrDb7sPRvVsVVLPMgNlB6ZDfuhyH/NxaXDqxMaUzP5w6kKKps1vw8unNCb3+4n688dJ+XH35IH731mlDbxr603vnk/q3l1L0xWdT0+qrz9/K1PWrIpZv4a+fv6b0xReGrl9/A3+R7T98OoU//C6pP713Gp++M4lfv7InoavPSv+cER0fy9DUkRUZev2ooam49PbN9OuLW/Hhpcfx4u6xFJgTMUNZAU+JBRPsRJUB+VpHHc4IXLZrwDvHlyqgv3h1D/btGsWqtevROziE3v4hLBT1m9TTtxCxjm70LerDyNJF6JWS21R3T3/KsVSXtHX2GOdo1TY8lKL5TetQ17wOjbGNKar9J1Uj16xpXIO5TWuVGlrWq+s2tMYl9QWxTRlqjG1Qx9bJuWZ1dy+8pXqytN1SvT1YMTqKfeO9+PDFbWJQO3Dl8LoE2HSlACZUwnyz0YDLkm571GFTcDeu6sAvxMJeOP2oQF2Mua1DKKnsg6d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pT9d87Kwx1yjG7j/jvlOX8y04oZOXkZ+onsu0Ouo4/Pph/Lvfh7Utpm8PdZVfuPsp0/owBuMbaRvjqceHIhDj7ShcdW1qE/7MFwuBJVBcUKcFOsL2G5r7z9AZ594wNg00gMYZsNrmA52oe3obl/E+xuH9wONxxz5sBhK0BL43xsXxvD4V2LceHcZrz4whacObZa6YULG5M6Z+jCcxtw+uQYzpxajfNn14rWK3FbtZ1br45/Xo579plVOHZoCY7J3O3EkftTdPTAEPbv6cfR/Ytx8sjo96ITBxbj2L5BuYdxr6eOLFViXevw3kWSwAzh3PFlWXX88LA8/+LE8U9JsqO039ARuf7E3gGlk/JbT8rxR+R6WicPL8EzhxYrcR/P4f1OHhzA4T2LMLF7EXZv78We8S48+fACPDa2APPteej3OrGuWurFbgW4s3dJAu7Bc69g886DgCfvbngCYXjCVbAJ6GBBAYK+IHwC2ZeXB5fFApvLiaamOiwZaFEWfHjXMPY/2qs0sUtS80OSwe0fwP4dvUrcfnpiBEcEzOF9Q9JBg6p86oA8vLTr/Wzfs6NL5m5t2LujEwd2dqdo96PteGw8hj3bOnFwZ+/3ov1y/11bW9V9zHpC7r1nWwf2UbL/0PZ2HNndm6G9OzoS5+yRc/Zua8fhx7tFXTi0s0vu0YW92432g3Ivtt9MR3f1KB1/QrZ3xrW9BVtXLUBvZy2qQyWI3v1DRH/0L1gZCmBHfTvq7R7DRbe24rX3PsbRF15DZeU8ma558P9+UDURGPZtXQAAAABJRU5ErkJggg==");
    public static final BufferedImage ACCOUNT_BACK_IMAGE = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAHgAAAAnCAYAAADEvIzwAAAa/UlEQVR4Xr2bZ3RV15XH91r5MElsbExVeeqvF7Wn3rse6r0gBBISIIoNGDvGppiOAkZ0i2YbcBNugFtwnIJD4hDHyZCZjBcpznjNzJqVj3yYD/NtZv/3vefqvvueMDgz0Vq/dc6t777zO3ufc++7oswlBWRmdklM2DL4Vuy36EHnXMqv9NHgcBWtHqmi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Jh+T8vQR/tyJkajIdSv29/H19oatO/nckDA5MapxaLlx7LH9A3JdRw8OyHdRTJ4aFU7xtUfDPIlSYvfs6aFVa0PipHx8mThSUWuVGyYY9IWSRbCrtcDYGb0CJ6p9spun4o3U151PG1dX0NOP1Qhb11fR7h1dtHcXs61RUsc+vgiwfUsT7draKuVu7hRYt3XTIoNtz7TS1qeajGV1HMAXMS/v3dlBO7e1CNZtO7e00a6nW2nLhhDt3dzO9/WLwzgCdvTzrWAvw3K299LeZ7ijbu+nAzuX0L6tvbRnSzev64qK+Zrlejealpld/Jm7n+6knVzu4f0BltXxO55skWvbwdeJa4/GwfHoqO1bn22nlRubqWFdJ5V9r42qDo2IG9wKAZWSBz99zmDo8yP0vxIG3Lr4cRuvAAAAAElFTkSuQmCC");
    public static final BufferedImage ACCOUNT_ERROR_SURE_IMAGE = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAHgAAAAnCAYAAADEvIzwAAAOb0lEQVR4XuWcTXAVVRbHz2okgZCgkQSN5PH1gsILgoEShahDHmI+gIQQQgzfGYEZw/gxo2KNGkUlfoBRwaHKmSmrZqaGoaypLKwpF9YUNTULlixmwWIWLF24yMLF7Gbu/9w+t2+fvv3eIyTg1Cz+dPe9t/vePr9zzr3drwPVLGimSvXAqjXUv2sbPT86SGfGjzmd9cRlp2dRoevrMm9sCVXSZjpS4/HtMVOCzfv7nqT7H2ileXWLWTWQ45MLqJlSELP09FB3+sYiySBCN5ulT88+W1Kf//rVpC7EuvSHU/TnSJf+NE6XLo7brdHfvvldpv7x999PS3/96gJN/uWM06U/nkrKjEPG+Zvzz6V0ztzPTAm2GdrbFQFutioN2O6U0vGj/Qzv3IdHafR4Nw3tH6bO3j7q3D40I+roHi6rzR1HwioGjrNUabsMdfQMp+WPU9Xp+5y2jK1h89Fj3cwAAXL8mV0e3JKA00B9HTnQw57z5mv7qGfnDtq05RCtbuulxYVOWpzfktSKcuq0Wp2hNb0J5duGlPqMDlHh4aFZle0H0v1bNa/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QHvXBsC2fPtW0PUu2CesNmoeGEqLVwqw1cCH8O7P+3Dv8FK42DJ9VjnGsAAAAASUVORK5CYII=");
    public static final Rectangle ACCOUNT_LOGIN_BUTTON = ImageUtil.createRect(438, 423, 557, 461);
    public static final Rectangle ACCOUNT_BACK_BUTTON = ImageUtil.createRect(252, 423, 371, 461);
    public static final Rectangle ACCOUNT_ERROR_SURE_BUTTON = ImageUtil.createRect(340, 343, 459, 381);


    public LoginAccountAction(IWindow targetWindow) {
        super(targetWindow, true);
    }

    @Override
    protected void doExecute() {
        if (beError()){
            targetWindow.execute(op->{
                op.click((int) ACCOUNT_ERROR_SURE_BUTTON.getCenterX(),(int) ACCOUNT_ERROR_SURE_BUTTON.getCenterY());
                op.delay(300);
                op.click((int) ACCOUNT_BACK_BUTTON.getCenterX(),(int) ACCOUNT_BACK_BUTTON.getCenterY());
                op.delay(1000);
                return  null;
            });
        }else {
            targetWindow.execute(op->{
                AccountState accountState = stateManager.getState(AccountState.class);
                op.type(accountState.getAccountName());
                op.pressKey(KeyEvent.VK_TAB);
                op.delay(300);
                op.type(accountState.getPassword());
                op.pressKey(KeyEvent.VK_ENTER);
                op.delay(1000);
                return  null;
            });
        }
    }

    public boolean beError() {
        BufferedImage screen = targetWindow.getState().getGameState().getScreenshot();
        return ImageUtil.haveImage(screen,ACCOUNT_ERROR_SURE_BUTTON,ACCOUNT_ERROR_SURE_IMAGE);
    }

    public static boolean validate(IWindow window) {
        BufferedImage screen = window.getState().getGameState().getScreenshot();
        return ImageUtil.haveImage(screen,ACCOUNT_LOGIN_BUTTON,ACCOUNT_LOGIN_IMAGE);
    }
}
